package com.dotflat.satistics.vo.general;

import lombok.Data;

/**
 * *******************************
 * Created by Tim.
 * form com.matt
 * on 2018/7/23
 * *******************************
 */
@Data
public class AllSignClienteleVo {
    private String areaName;
    private long nurseryCount = 0;
    private long earlyCount = 0;
    private long nurseryEarlyCount = 0;
    private long otherCount = 0;

    public static AllSignClienteleVo of(String areaName, Double nurseryCount, Double earlyCount, Double nurseryEarlyCount, Double otherCount){
        AllSignClienteleVo vo = new AllSignClienteleVo();
        vo.setAreaName(areaName);
        vo.setNurseryCount(nurseryCount.longValue());
        vo.setEarlyCount(earlyCount.longValue());
        vo.setNurseryEarlyCount(nurseryEarlyCount.longValue());
        vo.setOtherCount(otherCount.longValue());
        return vo;
    }
}
